﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<UnfriendlyFire.Models.RankedOfficer>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Details
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Details</h2>
    <table>
        <tr>
            <td class="display-label">
                <%= Html.LabelFor(m => m.FirstName) %>
            </td>
            <td class="display-field">
                <%= Html.DisplayFor(m => m.FirstName) %>
            </td>
        </tr>
        <tr>
            <td class="display-label">
                <%= Html.LabelFor(m => m.LastName) %>
            </td>
            <td class="display-field">
                <%= Html.DisplayFor(m => m.LastName) %>
            </td>
        </tr>
        <tr>
            <td class="display-label">
                Last Known Photograph
            </td>
            <td class="display-field">
                <img src="<%= Url.Encode(Model.Photo) %>" width="64" height="64" alt="Image of <%: Model.Email %>" />
            </td>
        </tr>
        <tr>
            <td class="display-label">
                <%= Html.LabelFor(m => m.RankTitle)%>
            </td>
            <td class="display-field">
                <%= Html.DisplayFor(m => m.RankTitle)%>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <img src="/Content/Images/<%= Model.RankIcon %>" alt="<%: Model.RankIcon %>" />
            </td>
        </tr>
    </table>
    <p>
        <%: Html.ActionLink("Edit", "Edit") %>
    </p>
</asp:Content>
